package org.fnzn.util.ftp;


public class FtpFactory {
	public static Ftp createFtpClient(){
		return new FtpImpl();
	}
	
	
/*public static void main(String args[]){
	Ftp ftp=null;
	try{
	ftp=FtpFactory.createFtpClient();
	
	ftp.connect("192.168.53.24", 21, "ifm3d", "handsome");
	//切换成bin模式
	//ftp.bin();
	ftp.asc();
	
	if(!ftp.existDirectory("hello")){
	ftp.mkdir("hello");
	}
	ftp.cd("hello");
	
	ftp.uploadFile("d:/test.sql","test.sql");
	ftp.uploadFile("d:/tbbatch.init","tbbatch.init");
	
	} catch (SocketException e) {
		e.printStackTrace();
	} catch (IOException e) {
		e.printStackTrace();
	}finally{
	    if(ftp!=null)
			try {
				ftp.disconnect();
			} catch (IOException e) {
				e.printStackTrace();
			}
	}
}*/
	
}
